// 列配置
export let columns = [
  {
    title: "序号",
    type: "index",
    width: "70",
    align: "center"
  },
  {
    title: "角色名称",
    key: "roleName"
  },
  {
    title: "所属部门",
    key: "deptName"
  },
  {
    title: "备注",
    key: "remark"
  },
  {
    title: "创建时间",
    key: "createTime"
  },
  {
    title: "操作",
    slot: "operation"
  },
];

// 分页配置
export let pageConfig = {
  pageSize: 20,
  pageNow: 1,
  total: 0,
  loading: false,
};

// 表单数据
export let formValidate = {
  roleName: null,
  dept: null,
  deptId: null,
  deptName: null,
  remark: null,
};

// 表单验证规则
export let ruleValidate = {
  roleName: [{required: true, message: "角色名称不能为空", trigger: "blur"}],
  dept: [{required: true, type: "array", message: "请选择所属部门", trigger: "change"}],
};